Skip to main content

1.3.0 is here!

· One min read
Vitali Haradkou

Version 1.2 was missed due to releasing issue.

The new telegraph component was landed and available on npm.js site.

fmt

This is not actually a "component" but it includes helpful formatting

Installation:

npm i @tlgr/fmt

How it works:

example.ts
import { fmt, bold } from "@tlgr/fmt";
import { Telegraf } from "telegraf";

const bot = new Telegraf("<API TOKEN>");

bot.start((ctx) => {
// send message
ctx.reply(...fmt(`Hello with ${bold("bold")} message`)); // hello with bold message
});

bot.launch();

Full Changelog available at link: https://github.com/vitalics/Telegraph/blob/main/releases/v1.3.0.md

Made with ❤️ from vitalics